Make sure the tree view is realized, since we grab the focus to it.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Jan 2006 18:24:26 +0000 (18:24 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 30 Jan 2006 18:24:26 +0000 (18:24 +0000)
2006-01-30  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
Make sure the tree view is realized, since we grab the
focus to it.  (#329144, Wouter Bolsterlee)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkentrycompletion.c

index 14f0c6c41a32138f90dfa9cd621b633b7947be85..fb6cdbaedaf89aafe501a8cefe595440181e5e0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-01-30  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
+       Make sure the tree view is realized, since we grab the
+       focus to it.  (#329144, Wouter Bolsterlee)
+
        * gtk/gtkspinbutton.h: 
        * gtk/gtkspinbutton.c: Add a wrapped signal.  (#322933,
        Carlos Garnacho Parro)
index 14f0c6c41a32138f90dfa9cd621b633b7947be85..fb6cdbaedaf89aafe501a8cefe595440181e5e0e 100644 (file)
@@ -1,5 +1,9 @@
 2006-01-30  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup): 
+       Make sure the tree view is realized, since we grab the
+       focus to it.  (#329144, Wouter Bolsterlee)
+
        * gtk/gtkspinbutton.h: 
        * gtk/gtkspinbutton.c: Add a wrapped signal.  (#322933,
        Carlos Garnacho Parro)
index c7c6a25366ea8e87b80c3063e46d55294a73d67d..7ebfe5b1ebdaa30384e7032dcbc3581175e10a04 100644 (file)
@@ -1347,6 +1347,8 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion)
                         NULL);
 
   height += vertical_separator;
+  
+  gtk_widget_realize (completion->priv->tree_view);
 
   if (items <= 0)
     gtk_widget_hide (completion->priv->scrolled_window);